lubot | Chino San was added by: Chino San | 02:33 |
---|---|---|
lubot | <Chino San> Hi, i'm having problems printing libreoffice documents, i get only blank pages, or just the cell outlines on libreoffice calc, it's like text is being printed white. … Other software prints just fine, so it's not the printer driver, uninstalling and reinstalling doesn't work either. Any advice please?? | 02:39 |
lubot | <Chino San> I forgot, this is on 20.04.1 | 02:41 |
lubot | <Leokolb> (Photo, 501x54) https://i.imgur.com/SGybP8f.jpg | 04:23 |
lubot | <Leokolb> add those 2 lines to Environment Variables in session settings | 04:24 |
lubot | <Chino San> @Leokolb [add those 2 lines to Environment Variables in session settings], Thanks man, i'll give it a try and report first thing in the morning | 04:26 |
=== lubuntu is now known as Guest99177 | ||
_017 | . | 12:01 |
ljb | 有人吗 | 12:04 |
lubot | <N0um3n0> @ljb [<ljb> 有人吗], 你需要什么? 这个频道是英文,电报是中文 | 12:07 |
lubot | <N0um3n0> what do you need? this channel is in English, there is one in Telegram in Chinese | 12:09 |
kc2bez | Unfortunately they left before you replied @N0um3n0 | 12:14 |
lubot | <N0um3n0> Ouch... Ok.. thanks.. | 12:15 |
kc2bez | They only stayed for 20 seconds :( | 12:15 |
lubot | <Chino San> @Leokolb [add those 2 lines to Environment Variables in session settings], That totally worked, thanks a lot man, i was losing my mind. | 12:21 |
lubot | <Leokolb> @Chino San [That totally worked, thanks a lot man, i was losing my mind.], Great.. | 12:22 |
lubot | <emergencyrussia> Is there any way to determine the name of a device currently being root? … like sda, mmcblock1 or nvme0n1 | 12:37 |
lubot | <emergencyrussia> I need a device to look up in /sys/block/ | 12:37 |
=== BrianG61UK__ is now known as BrianG61UK | ||
lubot | <emergencyrussia> I'm currently trying to use … ``` ROOTFS_PART=$(eval $(lsblk -oMOUNTPOINT,PKNAME -P | grep 'MOUNTPOINT="/"'); echo $PKNAME) … ROOTFS_DEV=$(basename "$(readlink -f "/sys/class/block/$ROOTFS_PART/..")")``` … But it fails on some emmc as these refer to /sys/devices/soc0/soc/2100000.aips-bus/2194000.usdhc/mmc_host/ | 12:38 |
lubot | mmc1/mmc1:0001/block , sure not proper for basename | 12:38 |
lubot | <aptghetto> @emergencyrussia [Is there any way to determine the name of a device currently being root? … like sd …], Something like: `mount | awk '"/" == $3 { print $1 }'`? | 12:52 |
lubot | <emergencyrussia> @aptghetto [Something like: mount | awk '"/" == $3 { print $1 }'?], Doesn't work on my both machines | 12:53 |
lubot | <emergencyrussia> One displays the partition block … /dev/mmcblk1p2 … Instead of … /dev/mmcblk1 | 12:53 |
lubot | <emergencyrussia> The other one uses lvm disk mapping | 12:54 |
lubot | <aptghetto> You need the partition or the disk? | 12:54 |
lubot | <emergencyrussia> it displays /dev/mapper/* | 12:54 |
lubot | <emergencyrussia> @aptghetto [You need the partition or the disk?], I need the disk | 12:54 |
lubot | <emergencyrussia> The idea is to determine if the system runs on ssd or hdd in a shell script | 12:55 |
lubot | <emergencyrussia> I use cat /sys/block/$ROOTFS_DEV/queue/rotational | 12:55 |
lubot | <emergencyrussia> The problem is that all the solutions I've found either do not work on emmc, or on nvme or on lvm | 12:56 |
lubot | <emergencyrussia> lsblk suddenly fails | 12:58 |
lubot | <aptghetto> Interesting problem: `rootpartition=$(mount | awk '"/" == $3 { print $1 }') … for device in $(lsblk -d -o name,rota | awk '0 == $2 { print $1 }'); … do … if [[ "$rootpartition" =~ "/dev/$device" ]]; then … echo "$device is a SSD" … fi … done` | 13:27 |
lubuntu | hi | 13:32 |
=== lubuntu is now known as Guest74551 | ||
lubot | <emergencyrussia> @aptghetto [Interesting problem: `rootpartition=$(mount | awk '"/" == $3 { print $1 }') … for …], Wow | 13:41 |
lubot | <aptghetto> The value in rootpartition might not be the correct one | 13:42 |
lubot | <emergencyrussia> @aptghetto [The value in rootpartition might not be the correct one], Yup | 13:45 |
lubot | <emergencyrussia> It fails on nvme | 13:45 |
lubot | <emergencyrussia> lsblk -o name,rota,mountpoint -P| grep 'MOUNTPOINT="/"' | 13:53 |
lubot | <emergencyrussia> This probably works | 13:53 |
lubot | <emergencyrussia> `eval $(lsblk -o name,rota,mountpoint -P| grep 'MOUNTPOINT="/"') ; echo $ROTA` | 13:55 |
lubot | <emergencyrussia> This one seems to work | 13:55 |
=== pavlushka_ is now known as pavlushka | ||
lubuntu | hi | 14:26 |
=== lubuntu is now known as Guest70587 | ||
Guest70587 | hello | 14:29 |
Guest70587 | HELLO | 14:42 |
lubot | INSHAOLLOX_1234 was added by: INSHAOLLOX_1234 | 15:11 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!