|
|||||||||||||||||||||||||||
A short list of linux installation hints |
|||||||||||||||||||||||||||
Fedora xfce | |||||||||||||||||||||||||||
September 18, 2017 |
|||||||||||||||||||||||||||
Listed here, for convenience, are a few linux installation hints. Most of these hints apply to Fedora 24, with Xfce.
To change the machine's name, edit the file: /etc/hostname
To list the current network settings: > ifconfig
> yum update ... is now: > dnf update
The screen's resolution may be stuck on 1024x768 or worse 640x480. The problem is undetected resolutions. Directions for how to fix this were found here: Start with getting what the video is connected to: > xrandr results can be: ... Therefore, the current output is device is: VGA-1 Use the cvt command to get the output of the Modeline. > cvt 1920 1080 output: # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz then create a new xrandr mode: > xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync (get some errors from the above) There isn't a change in resolution from the above, > xrandr --addmode 1920x1080_60.00 now to change to the new mode: > xrandr --output 1920x1080_60.00 Rebooting will remove these settings, so make it permanent: add an entry into /etc/X11/xorg.conf.d/ ...create and edit: /etc/X11/xorg.conf.d/10-monitor.conf ...insert the following: Section "Monitor": save the file, then > reboot
Notes in getting samba to work within fedora 24: ... to install: > dnf install samba An error appears while trying to install and run samba for the first time: ... error while loading shared libraries: libwbclient.so.0 > [samba]# systemctl start smb.service > Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details. Check the status of the samba service: > [samba]# systemctl status smb.service output: smb.service - Samba SMB Daemon systemd[1]: Starting Samba SMB Daemon... this fixes the lost library: > update-alternatives --install /usr/lib64/libwbclient.so.0 libwbclient.so.0-64 /usr/lib64/samba/wbclient/libwbclient.so.0 10 now when we run: > systemctl start smb.service it returns with no errors. > systemctl start nmb.service also returns without errors. -------------- useful commands: > systemctl start smb.service > systemctl start smb.service > systemctl restart smb.service > systemctl status smb -l to list out the samba users: > pdbedit -L -v Can get error while running pdbedit -L -v: tdbsam_open: Failed to open/create TDB passwd [/var/lib/samba/private/passdb.tdb] This means we need to be root to issue: pdbedit -L -v --------------- After spending a few days going in circles, trying to get samba to allow connections between win7 and the linux machine, adding this line to samba's configuration file finally allowed the linux machine to access the win7 directories and files: client ntlmv2 auth = no The problem that kept occurring: While trying to access files on a windows 7 machine from a linux machine via samba, nautilus, First this was changed on the windows 7 machine: Control Panel --> Administrative Tools --> Local Security Policy --> Local Policies --> Security Options --> Network security: LAN Manager authentication level --> Network security: Minimum session security for NTLM SSP (client & server) To edit the samba configuration file: > kate /etc/samba/smb.conf & Here is the final working smb.conf file: [global] interfaces = enp3s0 192.168.1.90/24 ; passdb backend = tdbsam ; printing = cups name resolve order = bcast hosts lmhosts wins [homes] [printers] [username] Something causes the following line to be commented out: client ntlmv2 auth = no something adds a ";" at the beginning of the line. If that happens then the linux box can't connect to windows machines and vice versa. Removing the ";" uncomments the line and linux once again can connect to windows machines, and the windows machines can see the linux's files.
Workaround for setting the background images on the desktop. The error: while trying to set the background image via: right-click >> Desktop Settings >> Background >> folder selection >> "other" doesn't allow it to change to a user's folder (the user's folder is greyed out) So, we need to be root, then copy the background images we wish to use to this directory: /usr/share/backgrounds/images Then they appear, and are selectable within the Desktop Settings.
|
|||||||||||||||||||||||||||