Category: Geen categorie


Yaourt

Yaourt is a wrapper for the pacman package manager, which allows installing from the Arch User Repository, AUR. It also supports installing from a normal user, and then prompts for a password to install through su or sudo. Yaourt is not available in the standard repositories. However, it’s available in the ArchLinux France repository:
Adding the archlinuxfr repository and install yaourt.

Network

In order to have a dynamic network configuration, for example, to easily connect to a WiFi, NetworkManager is a convenient tool.

[andre@8570w ~]$ yaourt -S openntpd networkmanager dnsmasq bluez network-manager-applet gnome-keyring
[root@8570w andre]# systemctl enable NetworkManager 
[root@8570w andre]# systemctl enable NetworkManager-wait-online

Network was previously configures to use DHCP on the ethernet connection, disable this to prevent conflicts:

[root@8570w andre]# systemctl disable dhcpcd@enp0s25

In order to start openntpd once the connection has been established, look here.

NFS

Installing NFS support and enabling the daemons:

[andre@8570w ~]$ yaourt -S nfs-utils
[root@8570w andre]# systemctl enable rpc-statd
[root@8570w andre]# systemctl enable rpc-gssd

NFS3 vs NFS4

On the old laptop, I was running NFS3 as NFS4 gave me some problems. There was a detail I’ve overlooked. Back then, I was like, I’ll come back to this issue later, and never looked into it again. The difference between mounting NFS3 and NFS4 is the fact NFS3 required the full path on the server, while NFS4 requires a relative path to the NFS root. Therefore the corresponding lines in the fstab are

NFS3:

192.168.178.49:/srv/nfs4/1000   /mnt/1000   nfs defaults,user,noauto 0 0

NFS4:

192.168.178.49:/1000   /mnt/1000   nfs4 defaults,user,noauto 0 0

Mounting from thunar

In order to mount removable media, for example, an SD card, “USB stick” or external hard disk through Thunar, we need the gvfs

[andre@8570w ~]$ yaourt -S gvfs

Before I installed gvfs, I had my user mountable NFS mounts from my fstab listed in Thunar, after installing they were gone. To get them back, add x-gvfs-show to the mount options in fstab

192.168.178.49:/1000   /mnt/1000   nfs4 defaults,user,noauto,x-gvfs-show 0 0

Touchpad

This laptop has a huge touchpad. By default it was set to “two finger scrolling”. Really annoying. This is not a Mac for God’s sake! After a day, I’m getting RSI pains. No good… but fortunately, this is just a configuration option, and can be set to normal edge scrolling.

woohoo --- i can use edge scrolling

Localisation

At first, I didn’t configure a language. Just running in English was fine, but what I didn’t realise is that this meant I was running in “C”, meaning it wasn’t using UTF-8 encoding, which prevented me from listening to Russian music, as their file names contain non-ASCII characters.

[andre@8570w ~]$ echo $LANG
C

Before setting any locale, it has to be generated. Uncomment the desired locales in /etc/locale-gen and run locale-gen

[root@8570w andre]# locale-gen

So, I am going to configure a global setting of UK English with UTF-8,

[root@8570w andre]#  localectl set-locale LANG=en_GB.UTF-8

and set my own profile to Dutch by adding the following to ~/.bashrc

export LANG=nl_NL.UTF-8

Social networks take a huge part of the online activities of many people nowadays. They have envolved over the years.

Back in 2000, a site cu2.nl launched. A first generation social network. Basically, you made a profile, and you had to enter your profile text with plain html code. Very basic, and one of the problems with this site, in my experience, was, users adding browser-specific html. Please note, this was early 2000’s and Internet Explorer was in it’s 5.x series…

Later, MySpace rose to be the popular site in my country. Using myspace, users customised their profiles with css code, and, for some reason beyond me, creating unreadable profiles with text in the same colour as their background image.

Again, local to my country, Hyves became popular. This site also offers the possibility to customise a profile, creating the same unreadable profile problem, however, it offered a button to switch to default colours, reducing the profile a bit.

And now, facebook is gaining popularity. The advantages of facebook is that it doesn’t offer these customisable colour schemas and stuff like that.

Facebook has changed over the years, and continues to change. Facebook has been criticised for it’s privacy policy. I must say, the options to specifically share content with certain users has improved lately.

I will admit, I have had these ideas before facebook had them, and planned to implement them to my own BlaatSchaap website.

I wish to combine some aspect of the current MySpace and Facebook. The MySpace v2 layout, allows the users to add content blocks to their profiles. I wish to create a profile with those content blocks, for which per block, a langauge and a access list is assigned. This way, only the allowed users who can read the language the content is in will bee it. Well… this has been implemented in the pre-alpha blaatschaap live.

However, another thing on the area of social networks has recently gained my attention. Diaspora. Diaspora is an open source, decentralised, social network. (https://joindiaspora.com/) The main pod isn’t taking registrations yet, but there are many community run pods open for registrations.

The layout is basically facebook. Photo albums are not supported yet, and access lists seem only to be allow lists, and there are no block lists. There is one field for a profile text, much like facebook. Like I have pointed out, I would like multiple fields in there, in my own site.

Well… diaspora is a decentralised network, which means it communicates with other sites running diaspora, but possibly also other websites if they can communicate using the same protocol. Which means, it might be possible to develop a BlaatSchaap site that can be integrated into the diaspora network.

After my server problems, I have decided I might do a clean install. I have considered installing Diaspora on it instead. But… my ideas for sharing content, and the way I manage it’s access, are a little more complicated then what diaspora implements now (or facebook had a few years ago). I haven’t yet looked at the communication protocol for diaspora pods, and I don’t know what impact this protocol has to my suggested features. I should also investigate how I can manage the access of content by external users.

But… in the end… it’s not (only) the site that makes a social network to a success, but it’s users. Nowadays, many of my online friends use Facebook. That’s why I am mostly on that social network. It’s about the people, not about the site.

The BlaatSchaap community is too small, to make the site great. Perhaps integrating it with the Diaspora network might improve it a bit. But Diaspora is new and small too…. but all the diaspora sites on different hosts integrate into one big network, just like XMPP (Jabber) runs on many servers, but you can send instant messages across the different servers.

Anyways… these were just some thought on social networks. I realise I haven’t mentioned Google+. I have noticed some people disabling their Facebook accounts, moving to Google+. Well… Google isn’t famous for their privacy policy either, so if that’s your reason it doesn’t make sense whatsoever. To those people who are concerned about their private information to advertisement companies should consider using a diaspora pod.

It seems my server has been up for three days now. Not that I have seen any mail from OVH, nothing. Well… it’s running. So I *can* update the DNS to point at the old server again.

However, it might be wise to perform a clean installation of that server? And at least make a backup for now. I should look at the possibilities of an automated backup to a different server too.

Perhaps I should spend some time coding/scripting again? But what direction to go? Some of my ideas, which I had planned to implement, to make something different from existing sites, are being implemented by the sites like facebook. so… what direction to go? And should I even continue the current project, or start something completely new? And if so, what should it be?

So… I’ve installed Windows 8 Developer Preview on my desktop machine. And, like usual for Windows installation programs, it overwrote my MBR with it’s own code, overwriting my Acronis OS Loader code. Unfortunately I don’t have the installation CD by hand, but I remembered it wrote it’s reinstall.com to an SD card. So, Windows 8 still offers to create an MS-DOS boot diskette when selecting the format option on a diskette. So, there we go, activate the boot loader again.

Windows 8 Developer Preview didn’t complain about being installed on a drive not being the primary master, and it booted itself fine with it’s own bootloader. What it fails at is, listing otehr operating systems, even Windows operating systems, (there were 4 of them on the primary master) Well…. it seems Windows 8 Developer Preview has put it’s complete bootloader in the MBR, and none in the boot sector of it’s partition, causing the OS Selector to fail at booting it. Well…. at least… that’s my “diagnose” for now. I guess I will have to play around with booting from the cd in rescue mode, get a command line and force it to write it’s boot code to the correct partition.

Windows 8 behaves like it’s the only Operating System on the machine, completely ignoring even previous versions of the Windows Operating System… and being booted by a third party OS manager, which is required when trying to set up a multi boot since it didn’t offer this option itself, also fails.

The blaatschaap server has been down since yesterday 22:30.I have been a quite stupid system admin, who in stead of shutting down his laptop, shut down his server. A not so smart action. Anyhow. At first this issue seemed to have caused a downtime of just half an hour, the time it took to go home, logged in to the web interface and booted up the server.

However, during the night, the server had been rebooting a couple of times, and it seems to be stuck in a continuous reboot loop for some reason. The configuration hasn’t changed or anything, just a reboot, and now it’s acting up like crazy. I have contacted the server company about this issue.

Now, please keep in mind, a few months ago, one night, the server was rebooted for no apparent reason, and back then I contacted the server company and they claimed they didn’t do it either.

Anyhow… A temporary server has been set up, thanks to my friend Pieter. I spend two hours configuring some basic stuff. For now, at least I will be capable of receiving emails on my blaatschaap.be email address, and there is an IRC server running again on irc.blaatschaap.be

So, I have also installed the Windows 8 Developer Preview on my desktop machine. This is an AMD Athlon64 3000+, so I’ve installed the 64 bit version.

On this version the Metro version of Internet Explorer does start when I click it. Does it only work on the 64 bit version, or is something else wrong?

Well… some more testing is required on the Desktop version of this OS.

Say hello to Windows 8 Developer Preview. I’ve installed it to my netbook (MSI Wind U100) last night. Yes, literally night… I think it was somewhere between two and three. lol

First having some problems, unrelated to windows. It seems, my external dvd drive refused to read the discs burned with my laptops internal dvd drive.

After fixing that problem… the installation dvd booted fine. I have installed the 32 bit version, since this model of the Atom CPU doesn’t support
64 bit. So… the installation program is quite similar to the Windows 7 installation, so I won’t spend much on that.

The first boot, took some time, saying things like building registery and preparing. Well… after some waiting… it was finished. So first thing to happen is asking for a computer name, and wifi setup. It worked immediately, so the driver for my wifi card was included on the installation media. Nice. After my connection worked, it asked for a Passport account, or… it’s called different nowadays, isn’t it? A Live account? Anyways, the thing you use to log in to MSN Messenger, (which nowadays is called Windows Live Messenger, isn’t it?) Whatever! Renaming the beast doesn’t make it a different animal! To me, it’s still MSN Messenger and a Passport account. Enough details. So… what it means, my windows login password is that of my passport account, and it also shows the name and photo I’ve used for my passport account on screen.

So, it shows the new start menu. So this is the Metro interface everyone is talking about? Well… First thing I tried was the control panel. So it lists a few options, and at the bottom it says for more setting use the desktop control panel, which refers to the control panel as it’s available on Windows 7.

This is where I shut my computer down yesterday, as it was getting late. Like I said, it was 3 or so, when I went to bed.

So, today I’ve booted the netbook… and it booted up really quick. This new boot process has been discussed on osnews a while ago. But I must point out, my WiFi connection wasn’t working. It showed as connected to wifi but no internet connection. I had to re-enable the wifi for it to work. I suppose some drivers haven’t been adjusted to the new boot process yet. But for being a developer preview, this was to be expected.

Anyways, a closer look at the control panel, shows, I can now enable and disable the support of 16 bit applications. With Microsoft pushing 64 bit versions, which do not support 16 bit applications at all (due cpu architecture) and by making the support of 16 bit applications in the 32 bit version of Windows 8 optional, I think this will be the end of the 16 bit windows application.

Something more interesting to observe is a look at the Device Manager, which shows that there is no driver installed for my video card. Yet, do I have the fancy GUI. This is something that has bothered me in Windows Vista/7, you know, how they handle older, pre-directx9, vga cards. I am no gamer, and I don’t see the point of buying a new graphics card just to see some fancy gui effects in my OS.

Well…. the metro start menu. It seems, only the control panel and the desktop button do something. all the other buttons, including the metro version of internet explorer, don’t seem to do anything at all. Well… it’s a preview after all… but I had expected to see something from the metro internet explorer.

Speaking of which… the desktop internet explorer 10 seems to be using the internet explorer dialect of the javascript xml handling. Still… the dialect. Microsoft seems to be heading towards HTML5, right? Wouldn’t it be nice they’d do certain things the same as the rest of the world? Ok, I admit this is a pre-html5 issue, being around since, well… the rise of AJAX. But still…

So.. like the other BSD’s I needed to configure my xorg.conf file to enable the correct resolution. Well… what’s next, play some sound. No sound card found. It seems I have to manually add the driver in the /boot/loader.conf file. So after adding driver to the configuration and rebooting, it works fine.

Well… some other things… which I did yesterday. My external hard disks… (which are ext3 formatted). On my FreeBSD, they appeared as icons on my xfce4 desktop. Double clicking it gave me an error. It seems, I had to add permissions to /usr/local/etc/PolicyKit/PolicyKit.conf, and now it works right away. Cool!

I haven’t got this working yet on the other BSDs. On the other BSD’s I can mount the manually of course. Please note on NetBSD the device is /dev/sdXe (e=0,1 etc) and on OpenBSD it is /dev/sdXi to mount the first parition on the external HD.

I think there was no dbus on NetBSD, (trying all three, but I don’t think I am mixing them up) but there was hald. But hald complains not being able to start since dbus is not running. And therefore the automatic mounting will not work.

I suppose this requires some more playing around with. For example to get TV-out working. I guess I’ll have to poke the xorg.conf for this again, and look at the driver to use.

Please note the video card in this system is a NVidia GForce 4 MX 440. To “modern standards” this is old. But the point is, for FreeBSD, NVidia provides a driver. For the other systems not. The Geforce4 in this machine is the NV17 core, which is supported by the nouveau driver, but looking at the supported systems section of the nouveau drivers reveals they only support Linux and FreeBSD, which are also supported by the NVidia drivers, so apart from being open source, this doesn’t add support for systems not supported by NVidia.

According to the man page of nv (FreeBSD), this driver supports my card, so it’s not using vesa I assume. I should check what the other BSDs support as well. Anyways on FreeBSD this nv driver manpage doesn’t show anything about TV-out, but I guess I could use the nvidia or nouveau driver, at least on FreeBSD.

So… I have this, I guess, about two year old Android phone. A T-Mobile G1, which is in fact a rebranded HTC Dream. So… for this phone there are no upgrades available since Android 1.6. And I must say, after I upgraded to 1.6, the GPS functionality of this phone stopped working. It was really after the 1.5 to 1.6 upgrade.

Well… looking at the upgrade guides, which tell me to root the device, tell my I must downgrade to exploit the bug in 1.0. Yeah…. the 1.0 version which was on there when I bought it. But googling a bit around got me this http://software2tech.com/tag/d​ownload-universal-androot/ which gave me root without having to reset everything.

You see… the guides on http://wiki.cyanogenmod.com/wiki/HTC_Dream:_Rooting tell me to backup *before* rooting, using apps which require root. So not that handy, isn’t it? Anyhow… so I got the root with that app…

Following the guide mentioned above… a new recovery rom is required. the amon ra is recommended for my phone, however the flash tool is missing. Perhaps it was only found in the ancient 1.0 rom? Well… I tried the other, not recommended one, and it installed fine.

The radio version of my phone was the radio version mentioned, so I don’t think I needed to upgrade it. I remember my phone prompting to upgrade this thing some time. However I did it anyways… tried to install the DangerSPL right away but it failed. rebooted the phone. it booted fine but the clock went back to 2009.

Trying to enter the recovery again to attempt to install this SPL thing again… but nothing seems to happen this time… just the icon remains on the screen, the menu doesn’t appear like it did previous time… I cannot continue without this danger thing, as it needs to repartition the flash to be able to flash larger images, so I can upgrade my Android version.

Why would I need a new phone, I can upgrade my old phone. Well… It doesn’t agree with me yet… but it will bow for me, I am root, after all!

So, I am continuing my *BSD series, on my old Pentium 3…. cramping three operating systems on a 20 GB hard disk… well… not that much space, and in the partition for a *BSD OS, there are disk slices… so I have a ~ 6 GiB space that I must devide in slices again. There I made a little mistake earlier, not giving enough space to the root slice on NetBSD.

Well… today it’s the turn to FreeBSD to be installed. The installer in menu driven. First it offers a IBM style disk paritioning tool, and after that a slice editor. Since I had already created the IBM style partitions for all OpenBSD, NetBSD and FreeBSD beforehand using sysresccd, a linux live cd with rescue stuff like partition editors and so.

When I entered the slice editor, I already saw some configuration. Some slice sizes were defined, but not their mount points/file systems. These were different values then the auto configure values it gave me when I choose this option. I wonder where did these values come from? I am not sure.

After copying the files it asks some questions, to enable ssh server, ftp, nfs, and so on. After this it offers some options to install software from the ports collection. I have looked for my window manager xfce4, but it didn’t appear in the list of window managers. However I observed separate entries for gnome and kde in the list, not under the window managers. Anyways, I choose to install the X server and drivers. Please note it is still installing from the installation DVD, not from internet sources, so this might explain the small software list in that ports collection.

After copying the files, it offers the option to add users to the system. This is again menu driven, including the entering of the password. The setting of the root password is a normal passwd change password action.

Now the system is installed and booted, let’s install some software,
in the FreeBSD manual, it says the pkg_add program supports the -r
parameter where it automatically sets the correct ftp server. So I
don’t have to set it like I did on NetBSD and OpenBSD. I suppose I
should check if NetBSD and OpenBSD support this option too, but I
guess not as I haven’t seen it mentioned.

As referenced on the pkg_mgr site, the OpenBSD package tool, the
FreeBSD program sysinstall, which also did the installation of
the system is responsible for package management with a menu.

So far, FreeBSD…. rooting my android is the next topic.