Saturday, August 26, 2017
unix source link, TUHS.org
Page with unix sources.
http://www.tuhs.org/Archive/Distributions/Research/
Monday, August 7, 2017
systemd action 9 suspended
getting systemd action 9 suspended.
Hint here:
https://askubuntu.com/questions/108924/missing-dev-xconsole-causes-rsyslog-to-stop-as-well-as-all-other-services
https://unix.stackexchange.com/questions/168215/create-several-dev-xconsole-files-automatically-upon-boot
https://devcentral.nasqueron.org/T806
"Root cause: rsyslog was trying to use xconsole, a program not installed, to send some logs to."
seems to have vanished after installing xterm, though not clear why.
/etc/init.d/rsyslogd has code to create /dev/xconsole (which is supposedly the problem it's missing) by linking /run/xconsole to /dev/xconsole.
After installing xterm they are both still missing.
Note: this system is a server configured system with xfce4 xrdp and tightvnc installed to give remote access. Suggestion that xterm was missing is in other online hints.
Sunday, August 6, 2017
XRDP failure log message: connecting to 127.0.0.1 5910 error - problem connecting
The messages
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login successful for display 10
started connecting
connecting to 127.0.0.1 5910
error - problem connecting
Printed in the dialog box when attempting to connect to an XRDP enabled system.
The latter problem implies a connectivity problem, which couldn't be further from the cause.
Many sites insist that installing XRDP, vncserver (of some sort) in one order or another is the problem. Also misleading.
Then you look in xrdp-sesman-log in /var/log, you will see this
[INFO ] starting Xvnc session...
[ERROR] X server for display 10 startup timeout
[INFO ] starting xrdp-sessvc - xpid=3531 - wmpid=3530
[ERROR] X server for display 10 startup timeout
[ERROR] another Xserver is already active on display 10
[DEBUG] aborting connection...[20130627-08:55:49]
[INFO ] ++ terminated session: username root, display :10.0, session_pid 3529, \
ip 192.168.0.227:59050 - socket: 7
Indicating that somehow your RDP session has two Xservers active. What happens when you log in is that a login method is performed to authenticate, and the top dialog indicates the progress of that.
Then it will spawn some VNC server session for the X session (uses 10, 11, etc.) to connect.
If you read the symptoms here, there is already a session or server on 5910. Completely wrong.
To find the problem, one has to try running the window manager. I don't know if this would happen for other than xfce4, which I use, but it produces the root problem. run:
If you try running vncserver, you will see at the end of the startup this:
[dix] Could not init font path element /usr/share/fonts/default/Type1, removing from list!
[dix] Could not init font path element built-ins, removing from list!
Fatal server error:
could not open default font 'fixed'
Turns out that if any failure occurs in the chain of events between the authentication after the RDP login and getting the session going, you get the " Xserver is already active on display" message in the var log sesman log.
Other errors I suspect produce the same nonsense, someone reported when the vnc server and client couldn't agree on a geometry, the same error occurred.
This is probably the solution to all the load order issues and which vnc server (real or tight) package you use.
quoting:
I have solved it by installing xfonts-base
This also solved my problem.
set static IP from command line gui Armbian / Debian 7 Orange Pi Zero 512
Recently I acquired a couple of OrangePi Zero 512's, with a network phy, and dual usb. The latter is not terribly useful because w/o modification to physically drive in more +5 there isn't much 5 v to spare on either port of this board. It is powered by a USB OTG micro port, which at most will draw 2.1A.
The armbian comes up with the root password set to "1234" and a script to force changing the password at first login. One can log in to either the serial port (presented on the OTG as a USB serial), you may wire in a serial port, or ssh into the unit once you find it.
The latter is a bit of a problem, however. For whatever reason the current armbian is set up to assign a random crap MAC address to the board. There is no retention of a MAC in any storage, so that isn't a huge problem. However, the MAC must be being set early enough that there isn't any of the static storage of the root available, so no static address.
Against my desire and policy here, I decided to set a static IP to the board, which skirts the need for a static MAC. I usually like to have everything DHCP so I can change any device by the dhcp server, but static IP will work to get round this.
to set the IP, one has to edit the ip with the network manager. the network manager may be edited with the nmgui command. Edit the ip from automatic to manual, and set up the IP.
The only caveat that needs to be recalled is that there is no netmask. The gui uses the format of
192.168.0.1/24 or such to set the netmask. Kind of against command line and file standards, but that took some hunting for when the setup failed for me a few times. And there is no netmask prompt.
One can either reboot the system, or restart the network manager. Seems like on a systemd type system this does that task
sudo service network-manager restart
********* on the topic of armbian ****
this method didn't work for the orangepi to change the configuration. Should work on some form of debian, but somewhere else must be some network code setup on armbian that ignores the settings in the /etc/networking directory configuration files. Has no effect at all.
https://kuziel.nz/notes/2017/01/orange-pi-zero-armbian-setup.html
Thursday, July 6, 2017
Redhat EL7.3 XRDP install
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from rdesktop, freerdp, and remote desktop clients. This how to will help you to setup xrdp server on CentOS 7 / RHEL 7.
Prerequisites:
1. This was written when xrdp is available neither on CentOS repositories nor on EPEL repository, after a lot of Google search; i found desktop repository (http://li.nux.ro/) which was having xrdp for CentOS 7 / RHEL 7. We need to manually setup the repository on CentOS 7.2. Don’t forget to install Gnome on CentOS 7
Automatic (recommended):
Install EPEL and nux Desktop repository rpms.# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm |
Manual:
Create a repository file.# vi /etc/yum.repos.d/xrdp.repo |
[xrdp] name=xrdp baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/ enabled=1 gpgcheck=0 |
Installation:
Issue the following command to install xrdp# yum -y install xrdp tigervnc-server |
--> Running transaction check ---> Package xrdp.x86_64 0:0.6.1-2.el7.nux will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: xrdp x86_64 0.6.1-2.el7.nux xrdp 271 k Transaction Summary ================================================================================ Install 1 Package Total download size: 271 k Installed size: 1.5 M Is this ok [y/d/N]: y Downloading packages: xrdp-0.6.1-2.el7.nux.x86_64.rpm | 271 kB 00:05 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : xrdp-0.6.1-2.el7.nux.x86_64 1/1 Verifying : xrdp-0.6.1-2.el7.nux.x86_64 1/1 Installed: xrdp.x86_64 0:0.6.1-2.el7.nux |
# systemctl start xrdp.service |
# netstat -antup | grep xrdp
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1508/xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1507/xrdp-sesman
|
# systemctl enable xrdp.service |
# firewall-cmd --permanent --zone=public --add-port=3389/tcp # firewall-cmd --reload |
# chcon --type=bin_t /usr/sbin/xrdp # chcon --type=bin_t /usr/sbin/xrdp-sesman
Test:
Now take rdp from any windows machine using Remote Desktop Connection, enter ip address of Linux server in computer field and click on connect.Sunday, June 11, 2017
Restoring Ultra 5 NV ram info
This set of notes resets a serial into a Sun ultra 5 after power on, or replacement
Note
that the BIOS battery in this unit has expired (the system was
manufactured 17 years ago after all). When you initially power on the
system, you will need to program the PROM serial number and manually
boot the system. The procedure to program the PROM serial number
follows:
1.) Invalidate the PROM XOR checksum:
57 f mkp <enter>
2.) Program the PROM's Serial number:
8 0 20 2b 59 d2 2b59d2 mkpl <enter> <ctrl-d> <ctrl-r>
3.) Reset the system so that the system detects a proper serial number during POST:
reset <enter>
4.) Boot internal hard drive:
boot disk <enter>
*If you need to stop the system, press <stop-a> to get to the "OK>" prompt.
Friday, June 9, 2017
Downgrading php from 7.0 to 5.0
Php7 is installed by default on Ubuntu 16.04.
The copy of gregarius, an RSS aggregator / reader uses php revision greater than 4. Many of the mysql php core functions, and string editing is needlessly mangled in 7.0, and editing and updating the gregarius package is a very large task.
It is easier to downgrade the php for now than editing gregarius. FWIW gregarius is pretty much dead in support after 2006, very old, which is sad since it is a nice stable tool.
it requires mysql, but luckily the downgraded php 5 works along with the mysql extensions.
Procedure snarfed from another blog to remove php 7 and install 5.6 from another repository, ondrej.
Remove all the stock php packages
List installed php packages with
If you have installed
List installed php packages with
dpkg -l | grep php| awk '{print $2}' |tr "\n" " " then remove unneeded packages with sudo aptitude purge your_packages_here or if you want to directly remove them all use :sudo apt-get purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`
Add the PPAsudo add-apt-repository ppa:ondrej/php
If you get add-apt-repository: command not found run the following command first :sudo apt-get install software-properties-common
Install your PHP Versionsudo apt-get update
sudo apt-get install php5.6
You can install php5.6 modules too for examplesudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
Verify your versionIf you have installed
php5.6-clisudo php -v
If you don't have php5.6-cli, put this on a .php file<?php
//outputs php configuration info
phpinfo();
?>
restarting apache
dpkg-reconfigure phpmyadmin
x
Subscribe to:
Posts (Atom)