meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
admin:linux_stuff [2019/01/17 12:05]
laakkone removed
— (current)
Line 1: Line 1:
-====== Some Linux stuff ====== 
- 
-Collection of useful linux tips for everyone. 
- 
-===== Printing ===== 
- 
-  * [[admin:​printing | Printer configuration]] 
- 
-===== File shares ===== 
- 
-Mount the shares as a normal user under your home directory using option noperms. Noperms disables local file access permissions checking, so the local UID, GID and permissions information can be whatever, they are ignored. You have to mount under your home directory to prevent other users on your workstation from using the shares you mounted. Otherwise they would have your identity and access rights on the share. So make sure only you can access the mount points. 
- 
-==== How to Mount ==== 
- 
-The general form is:  
- 
-<​code>​mount.cifs //​server/​share mountpoint -o noperms,​user=LUT/​username</​code>​ 
- 
-**For umount you must use umount.cifs command.** It seems to need the absolute path to mount point, otherwise it leaves a stale entry in /​etc/​mtab. ​ 
- 
-=== Mount examples === 
- 
-<​code>​ 
-mkdir /​home/​laakkone/​mnt/​filestite_tite 
-mount.cifs //​files-tite.cc.lut.fi/​tite ​ /​home/​laakkone/​mnt/​filestite_tite -o noperms,​user=LUT/​laakkone 
- 
-mkdir /​home/​laakkone/​mnt/​diso_kurssit 
-mount.cifs //​diso.it.lut.fi/​kurssit ​ /​home/​laakkone/​mnt/​diso_kurssit -o noperms,​user=LUT/​laakkone 
-</​code>​ 
- 
-=== umount examples === 
- 
-<​code>​ 
-umount.cifs /​home/​laakkone/​mnt/​filestite_tite 
-umount.cifs /​home/​laakkone/​mnt/​diso_kurssi 
-</​code>​ 
- 
-=== Ubuntu 9.10 and compiling over cifs/samba mount === 
- 
-Looks like with ubuntu 9.10 (karmic) compiling over cifs/samba files is failing. You need to add ''​noserverino''​ option to mount.cifs command when mounting file share: 
-  
-<​code>​mount.cifs //​files-tite.cc.lut.fi/​tite/​ files-tite/​tite/​ -o noperms,​user=LUT/​laakkone,​noserverino</​code>​ 
- 
-===== Reinstalling debian/​ubuntu ===== 
- 
-You might want to speed your reinstallation by storing list of your installed packages to file. 
- 
-<​code>​dpkg --get-selections > list.txt</​code>​ 
- 
-You can restore it with following commands: 
- 
-<​code>​ 
-dpkg --set-selections < list.txt 
-apt-get dselect-upgrade</​code> ​ 
- 
-===== Ubuntu 10.04 LTS and rdesktop cursor color problem ===== 
- 
-When using Windows server 2003 and later remotely with rdesktop windows cursor is black. Some applications are hard to use with black only. It can be fixed by installing rdesktop package with patch related to it. Download either of these packages and install it. 
- 
-  * {{:​admin:​rdesktop_1.6.0-2ubuntu3ppa1_svn1593_i386.deb| Rdesktop package for 32-bit version of ubuntu 10.04 LTS}} 
-  * {{:​admin:​rdesktop_1.6.0-2ubuntu3ppa1_svn1593_amd64.deb| Rdesktop package for 64-bit version of ubuntu 10.04 LTS}} 
- 
-