PDA

View Full Version : Knoppix 8.1 USB-stick installation



Karibu
10-04-2017, 10:44 PM
Successfully installed release 8.1 on USB stick...works great on my AMD desktop with dual screens, though two minor issues: 1) Screen layout configured with xrandr to my needs - file saved in --->knoppix/.screenlayout with name ScreenLayout.sh. After reboot the system does not boot with this configuration and I have to configure each time I start the computer. 2) Running ->System Settings, ->Workspace Themes ->Cursor Theme I change the mouse cursor to "redglass 48". After reboot the system does not boot with this configuration either and I have to configure the mouse cursor theme each time I start the computer. What do I do wrong? Is there an easy fix which I can do myself?

Karibu
10-08-2017, 11:17 PM
I'm just wondering: Does it make any sense to look at "/etc/X11/xorg.conf" for a solution to the issue? Here are Section Monitor and Section Device:------------ -------------- --------- --
# Monitor section --->auto-generated by KNOPPIX mkxorgconfig Section "Monitor" Identifier "Monitor0" ModelName "Generic Monitor" # HorizSync 28.0 - 78.0 # Warning: This may fry very old Monitors # HorizSync 28.0 - 96.0 # Warning: This may fry old Monitors # VertRefresh 50.0 - 76.0 # Very conservative. May flicker. # VertRefresh 50.0 - 60.0 # Extreme conservative. Will flicker. TFT default. Option "MonitorLayout" "LVDS,AUTO" EndSection . . ----------------

# Section "Device" ---> ### Available Driver options are:- # sw_cursor is needed for some ati and radeon cards #Option "sw_cursor" #Option "hw_cursor" #Option "NoAccel" #Option "ShowCache" #Option "ShadowFB" #Option "UseFBDev" #Option "Rotate" Identifier "Card0" # Driver (chipset) autodetect VendorName "All" BoardName "All" # BusID "PCI:1:0:0" # compiz, beryl 3D-Support with DRI & Composite Option "XAANoOffscreenPixmaps" Option "AllowGLXWithComposite" "true" # Some Radeon cards don't handle this well. # Option "EnablePageFlip" "true" Option "TripleBuffer" "true" # Tweaks for the xorg 7.4 (otherwise broken) "intel" driver # Option "Tiling" "no" Option "Legacy3D" "false" # These two lines are (presumably) needed to prevent fonts from being scrambled Option "XaaNoScanlineImageWriteRect" "true" Option "XaaNoScanlineCPUToScreenColorExpandFill" "true" EndSection------------

philo
10-09-2017, 05:04 PM
Run LxAppearane?

Karibu
10-10-2017, 06:26 AM
Thanks for the hint... yes I did and it solved issue #2 - Mouse cursor configuration remains after reboot as desired. For issue #1 - Screen layout - I just change the video cable connections to the PC.

Karibu
10-10-2017, 10:38 PM
I'm not really happy with the solution though ... :confused:
because now I have trouble to get the cursor size bigger.
I would like to have redglass 48, which I can choose in System Settings, as default and available after each reboot.

philo
10-11-2017, 04:45 PM
/home/knoppix/.config/gtk-3.0/settings.ini ?

philo
10-11-2017, 04:58 PM
or:

/home/knoppix/.config/lxsession/LXDE/desktop.conf

Karibu
10-11-2017, 09:03 PM
/home/knoppix/.config/gtk-3.0/settings.ini ?

[Settings]
gtk-theme-name=Raleigh
gtk-icon-theme-name=gnome
gtk-font-name=Bitstream Vera Sans 12
gtk-cursor-theme-name=core
gtk-cursor-theme-size=18
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb

I'm not sure how to change the cursor theme here?

Karibu
10-11-2017, 09:11 PM
or:

/home/knoppix/.config/lxsession/LXDE/desktop.conf

[Session]
window_manager=compiz
disable_autostart=no
polkit/command=lxpolkit
clipboard/command=lxclipboard
xsettings_manager/command=build-in
proxy_manager/command=build-in
keyring/command=ssh-agent
quit_manager/command=lxsession-logout
quit_manager/image=/usr/share/lxde/images/logout-banner.png
quit_manager/layout=top
lock_manager/command=lxlock
terminal_manager/command=lxterminal
launcher_manager/command=lxpanelctl

[GTK]
sNet/ThemeName=Raleigh
sNet/IconThemeName=gnome
sGtk/FontName=Bitstream Vera Sans 12
iGtk/ToolbarStyle=3
iGtk/ButtonImages=1
iGtk/MenuImages=1
sGtk/CursorThemeName=redglass
iGtk/CursorThemeSize=18
iXft/Antialias=1
iXft/Hinting=1
sXft/HintStyle=hintslight
sXft/RGBA=rgb
iNet/EnableEventSounds=1
iNet/EnableInputFeedbackSounds=1
sGtk/ColorScheme=
iGtk/ToolbarIconSize=3

[Mouse]
AccFactor=20
AccThreshold=10
LeftHanded=0

[Keyboard]
Delay=500
Interval=30
Beep=1

[State]
guess_default=true

[Dbus]
lxde=true

[Environment]
menu_prefix=lxde-

I'm confused...:confused:
here redglass shows up ( size 18 though). Which of the config files is responsible when booting?

Karibu
10-11-2017, 09:35 PM
:) Eureka! It works....It's ....LXDE/dektop.conf :D
Thank you philo, I changed line


iGtk/CursorThemeSize=18

to


iGtk/CursorThemeSize=48

Karibu
10-11-2017, 10:19 PM
More Help needed:

Time and Day Settings:

I live in Time zone America/Vancouver. After each reboot the Time zone is reset to local time which is my time +8 hours.

Where is the configuration file for Time and Day Settings to find?
I might be able to change "local" to "America/Vancover" ?

Karibu
10-12-2017, 01:39 AM
I found this thread posted by philo on 08-09-2014:
Time zone change cannot be made permanent.

I can set the time zone and it shows correct in /etc/timezone "America/Vancouver".
After reboot /etc/timezone is overwritten and says "localtime"

Karibu
10-12-2017, 02:02 AM
I entered UTC in /etc/adjtime and set the time zone again to America/Vancouver.
After reboot /etc/adjtime was still ok (UTC) but /etc/timezone was again "localtime".
What to do?

philo
10-12-2017, 11:17 AM
BIOS time (hardware clock) --> UTC

/etc/adjtime --> UTC [instaead of LOCAL]

/etc/timezone ---> America/Vancouver

and maybe in :
/media/sd__/boot/syslinux/syslinux.cfg
LABEL knoppix LABEL knoppix64, add inside APPEND:

--> tz=America/Vancouver

Karibu
10-13-2017, 02:41 AM
1) BIOS time (hardware clock) -->UTC

2) /etc/adjtime --> UTC [instaead of LOCAL]

3) /etc/timezone ---> America/Vancouver

4) and maybe in :
/media/sd__/boot/syslinux/syslinux.cfg
LABELknoppix LABEL knoppix64, add inside APPEND:

-->tz=America/Vancouver

To 1):
The BIOS is for MSI motherboard 785GM-E51.
I can not change the time - it shows +7 hours from my local time.

To 2):
Ihave changed this to UTC!

To 3):
Ihave changed this to America/Vancouver - but it is mysteriously overwritten to America/New-York

To 4):
root@Microknoppix:/# sudo nano /media/sdg/boot/syslinux/syslinux.cfg

/media/sdg/boot/syslinux/syslinux.cfgdoes not exist

root@Microknoppix:/# ls
config-4.12.7 grub ipxe.lkrn System.map-4.12.7-64 vmlinuz-4.12.7
config-4.12.7-64 ipxe.efi System.map-4.12.7 vmlinuz vmlinuz-4.12.7-64

jfitie
10-13-2017, 08:31 AM
I just run this script automatically on boot (see https://wiki.lxde.org/en/Autostart). Good enough for me. Change the 2nd line as needed.

time=$(date +%Y%m%d\ %H:%M:%S)
echo Europe/Amsterdam | sudo tee /etc/timezone
sudo dpkg-reconfigure -f noninteractive tzdata
sudo date --set="$time"
sudo hwclock --systohc


You could even add something like:

(sleep 60 && sudo rdate -n pool.ntp.org && sudo hwclock --systohc) &

philo
10-13-2017, 10:48 AM
Useful reads:

http://knoppix.net/wiki/Cheat_Codes

http://knoppix.net/forum/threads/31161-Time-problem

philo
10-13-2017, 06:57 PM
I can not change the time - it shows +7 hours from my local time.


Then that's set at UTC already?

Karibu
10-14-2017, 02:52 AM
I found syslinux.cfg in >Root >KNOPPIX >boot and added
inside APPEND: -->tz=America/Vancouver

Now, in window under ---> Preferences ---> Time and Date the line 'Time zone' is filled in correctly (America/Vancouver) and the line 'Configuration' is filled in correctly (Keep synchronized with Internet servers) as well.
I still don't get the PST (Pacific Standard Time) though. Only if I switch the configuration back and forth between 'Manual' and '...synchronized...' then, after a few minutes, the PST is shown....

What else is missing?

philo
10-14-2017, 11:18 AM
What else is missing?

The ntp package?

Karibu
10-15-2017, 12:35 AM
There is a ntp.conf file in /etc but I'm not knowledgeable enough to know how to configure that file to my needs.


# /etc/ntp.conf,configuration for ntpd; see ntp.conf(5) for help


driftfile/var/lib/ntp/ntp.drift


# Enable this if youwant statistics to be logged.
#statsdir/var/log/ntpstats/statistics loopstats peerstats clockstats
filegen loopstatsfile loopstats type day enable
filegen peerstatsfile peerstats type day enable
filegen clockstatsfile clockstats type day enable


# You do need totalk to an NTP server or two (or three).
#serverntp.your-provider.example
# pool.ntp.org mapsto about 1000 low-stratum NTP servers. Your server will
# pick a differentset every time it starts up. Please consider joining the
# pool:<http://www.pool.ntp.org/join.html>
pool0.debian.pool.ntp.org iburst
pool1.debian.pool.ntp.org iburst
pool2.debian.pool.ntp.org iburst
pool3.debian.pool.ntp.org iburst


# Access controlconfiguration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The webpage <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also behelpful.
# Note that"restrict" applies to both servers and clients, so aconfiguration
# that might beintended to block requests from certain clients could also end
# up blockingreplies from your own upstream servers.
# By default,exchange time with everybody, but don't allow configuration.
restrict -4 defaultkod notrap nomodify nopeer noquery limited
restrict -6 defaultkod notrap nomodify nopeer noquery limited


# Local users mayinterrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1


# Needed for addingpool entries
restrict sourcenotrap nomodify noquery


# Clients from this(example!) subnet have unlimited access, but only if
# cryptographicallyauthenticated.
#restrict192.168.123.0 mask 255.255.255.0 notrust
# If you want toprovide time to your local subnet, change the next line.
# (Again, theaddress is an example only.)
#broadcast192.168.123.255
# If you want tolisten to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient

philo
10-15-2017, 08:38 AM
'Google is your friend', e.g. :

https://wiki.debian.org/NTP
https://wiki.debian.org/DateTime
https://linuxconfig.org/how-to-setup-ntp-server-and-client-on-debian-9-stretch-linux

et alii.

The ntpdate package is not necessary if you have ntp.

philo
10-15-2017, 03:05 PM
No doubt you read in:
http://knoppix.net/wiki/Cheat_Codes#Micro-Remastering



.....
To change other boot options, look within the file 'syslinux.cfg' for the LABEL line of the way you always start with Knoppix. If you for example always use "knoppix" (and not "knoppix64") then look for "LABEL knoppix". Don't change the following KERNEL line but insert additional or change existent cheatcodes within the APPEND line.
LABEL knoppix
KERNEL linux
APPEND ramdisk_size=100000 lang=en keyboard=es xkeyboard=es apm=power-off ...

Note: If you are using Knoppix 64 bit, you have also to change the settings within '/mnt-system/boot/syslinux/syslnx32.cfg' and '/mnt-system/boot/syslinux/syslnx64.cfg'

philo
10-15-2017, 07:56 PM
Your /etc/ntp.conf file is the same as mine. Your problem must be elsewhere.

Karibu
10-17-2017, 11:44 PM
I guess my problem is the Date and Time entered in the BIOS.
Right now it seems to be + 7 hours Pacific Standard Time and
I'm not able to change Date and Time in BIOS, still working on it.

philo
10-18-2017, 08:54 AM
https://www.timeanddate.com/worldclock/canada/vancouver

fredvej
10-18-2017, 09:28 AM
To start the ntp service at boot you must edit /etc/rc.local and replace SERVICES="cups" with SERVICES="cups ntp"

Karibu
10-21-2017, 01:47 AM
Time issue is solved finally. What I had to do in my case:

1) As philo recommended earlier:

Check
1) BIOS time (hardware clock) --> UTC
2) /etc/adjtime --> UTC [instaead of LOCAL]
3) /etc/timezone ---> America/Vancouver

4) and maybe in :
/media/sd__/boot/syslinux/syslinux.cfg
LABEL knoppix,
LABEL knoppix64
add inside APPEND: --> tz=America/Vancouver

The path for syslinux.cfg is '/mnt-system/boot/syslinux'.

I also changed - as philo recommended -
'/mnt-system/boot/syslinux/syslnx32.cfg' and
'/mnt-system/boot/syslinux/syslnx64.cfg'
and added inside APPEND: --> tz=America/Vancouver

Thanks for the help! :)